package com.eastdigit.system.inter;

import com.eastdigit.system.model.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(String id);

    int insert(Role record);

    Role selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> selectRoleOfUser(@Param("userId") String userId);

    List<Role> selectRoleOfDept(@Param("deptId") String deptId);

    List<Role> selectAllRoles();
}
